-- frighten
-- created by wangy
-- 震慑

return {
    apply = function(prop, baseValue)

        -- 威力prop[3]减少的百分比
        return baseValue - math.modf(baseValue * prop[3] / 1000);
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local damage = prop[3] / 10;

        -- prop[3]减少的百分比
        desc = string.gsub(desc, "{1}", damage);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};